import axios from '../utils/request'

function getLive(payload) {  //后台直播
    return axios.get('/api/livelist', { params: payload })
}

function liveDel(id) {  //后台直播删除
    return axios.delete(`/api/dellive/${id}`)
}

function addLive(payload) {  //后台添加直播    
    return axios.post('/api/addlive', payload)
}

function getpinupload(payload) {   //直播上传图片
    return axios.post('/api/getpinupload', payload)
}

function setZhiboState(payload) {   //直播修改开关
    return axios.post('/api/setZhiboState', payload)
}

export default {
    getLive,
    liveDel,
    addLive,
    getpinupload,
    setZhiboState
}